home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 10 / BBS In A Box Volume X (AMUG) (January 1994).bin / Files / Prog / B-C / CdevTester.cpt / Read Me < prev   
Encoding:
Text File  |  1993-03-04  |  1.8 KB  |  51 lines  |  [TEXT/EDIT]

  1. /***************
  2. *
  3. *  System 7.0 Control Panel tester
  4. *
  5. *  ©1993 Triplo Software
  6. *
  7. ****************/
  8.  
  9. The Control Panel tester is a source code file that you can use to test
  10. your cdev code resource files under the THINK C 5.0 environment with little
  11. difference from the operating system.
  12.  
  13. How to use the cdev tester:
  14.  
  15. • Make a new project
  16. • Add the cdev tester.c file, MacTraps, and MacTraps2, if necessary
  17.   Note: cdev tester.c has the main() loop - you need only write the
  18.   the cdev() section
  19. • Add your cdev source code
  20.   Make sure it has the correct form of:
  21.   pascal long cdev(int,int,int,int,EventRecord*,long,DialogPtr);
  22. • Add your cdev resources into the new project's resource file.
  23. • Compile and run the cdev tester. Choose open from the menu to open the
  24.   Control Panel.
  25.   
  26. IMPORTANT NOTES:
  27.   The major differences from the OS Control Panel shell are as follows:
  28.   
  29.   • There is no A5 world in the OS, but there is one in the cdev tester.
  30.     Make sure that you don't access Quickdraw globals. They won't work in
  31.     the OS world.
  32.   • If you plan to use global variables in the cdev, make sure you use
  33.     the <SetUpA4.h> header file when you compile, but don't use it within
  34.     the cdev tester.
  35.     
  36. To create your cdev:
  37.  
  38. • Make a new project
  39. • Add your cdev file, and change the form to:
  40.   pascal long main(int,int,int,int,EventRecord*,long,DialogPtr);
  41. • Add any other source files that are necessary.
  42. • Make a resource file with your resources from the cdev tester resource file
  43. • Compile the project as a CODE resource, type cdev.
  44. • Zipadeedoodah! Your control panel will work under the OS!
  45.  
  46. Any comments, questions, bugs, etc. please report them to:
  47. Triplo Software
  48. c/o EOLCOTT@vx.cis.umn.edu
  49.  
  50. If you think I expect money from this, you're crazy. It's freeware, I guess.
  51. Have fun. Just credit me where you think it's due.